﻿// -------------------------------------------------------------------------
//    @FileName         :    NFRoomModule.h
//    @Author           :    Gao.Yi
//    @Date             :    2025-09-08
//    @Email			:    445267987@qq.com
//    @Module           :    NFRoomModule
//    @Desc             :
//
// -------------------------------------------------------------------------

#pragma once

#include "NFComm/NFCore/NFPlatform.h"
#include "NFLogicCommon/NFMMODynamicModule.h"
#include "NFLogicDynamicModule.h"

class NFRoomModule : public NFLogicDynamicModule
{
public:
    explicit NFRoomModule(NFIPluginManager* p);

    ~NFRoomModule() override;

public:
    // 虚函数，用于初始化对象
    int Awake() override;

    int OnHandleClientMessage(NFDataPackage& packet, NFSession* pSession, const proto_ff::Proto_CSReq& req) override;

    int OnHandleServerMessage(uint32_t msgId, NFDataPackage& packet, uint64_t param1, uint64_t param2) override;
public:
    int OnHandleRoomQuery(NFDataPackage& packet, NFSession* pSession, const proto_ff::Proto_CSReq& req);
};